package single_game.logic.race_simulator.race_team.my_riders_actions;

import single_game.logic.race_simulator.Group;
import single_game.logic.race_simulator.RaceSimulator;
import single_game.logic.race_simulator.race_team.RaceRider;

public class MyRiderMaintainPosition {
	
public static void simulateRiderAction(RaceRider rider) {
	if (rider.getEnergy() < 5 && rider.getCyclistId() == 25)
		System.out.println("Valverde MyTeam maintain");
	Group group = RaceSimulator.findGroupById(rider.getGroupId());
	if (group.inRelayGroup(rider))
		group.removeFromRelayGroup(rider);
	}
}
